package org.example.cloud.api;

import org.example.cloud.util.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 宋孟林
 * @description
 * @date: 2025/4/12 7:26
 */
@FeignClient(value = "seata-account-service")
public interface AccountFeignApi {
    @PostMapping("/account/decrease")
    //这两个参数注解一定要加不然会报错，参数体数量异常
    ResultData<?> decrease(@RequestParam("userId") Long userId, @RequestParam("money") Long money);
}
